﻿#include "chanelvolt.h"
#define NULL    0
//double Êý×é
ChanelVolt::ChanelVolt()
{
    n=0;
    volt=NULL;
}
ChanelVolt::~ChanelVolt()
{
    if (volt!=NULL)
        delete volt;

}
bool ChanelVolt::setData(long vn)
{
    n=vn;
    if (volt!=NULL)
        delete []volt;
    volt=new double[n];
    return true;

}
